<?php

namespace Database\Seeders;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

class MusicTypeSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {

        $nowDate = date('Y-m-d H:m:s',time());
        $sql = "insert into music_types values (?,?,?,?,?,?)";
        DB::insert($sql, [1, '最新歌曲', 1, $nowDate, $nowDate, null]);
        DB::insert($sql, [2, '识谱器乐', 2, $nowDate, $nowDate, null]);
        DB::insert($sql, [3, '钢琴合唱', 3, $nowDate, $nowDate, null]);
        DB::insert($sql, [4, '理论课程', 4, $nowDate, $nowDate, null]);
        DB::insert($sql, [5, '视唱练习', 5, $nowDate, $nowDate, null]);

    }
}
